package com.leisurexi.gedis.client.protocol;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

import static com.leisurexi.gedis.client.codec.PacketCodec.HEADER;

/**
 * @author: leisurexi
 * @date: 2021-07-31 15:42
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class RequestProtocol extends Packet {

    private String header = HEADER;

    /**
     * 协议版本
     */
    private byte version = 1;

    /**
     * 获取指令码
     */
    private byte command;

    private List<String> args;

}
